package com.warren.biz.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.warren.biz.entity.OutStock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.warren.biz.vo.GetOutStockVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author warren
 * @since 2021-04-24
 */
public interface OutStockService extends IService<OutStock> {
    /**
     * 查询出库物资
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<OutStock> findOutStockList(Page<OutStock> page, QueryWrapper<OutStock> queryWrapper);

    /**
     * 添加发放物资
     * @param getOutStockVo
     */
    void addOutStock(GetOutStockVO getOutStockVo);

    /**
     * 审核发放物资
     * @param id
     * @param outNum
     */
    void publishOutStock(Long id, String outNum);

    /**
     * 删除发放物资
     * @param id
     * @param outNum
     */
    void delete(Long id, String outNum);

    /**
     * 查询回收站的物资
     * @return
     */
    List<OutStock> findStockInRubbish(QueryWrapper<OutStock> queryWrapper);


}
